//==============================================================================
//
// File: ServerInfoDialog.h
// Project: Browser
// Author(s): Matthias Van Eeghem (matthias@van-eeghem.com)
// License: See LICENSE in root directory
//
// This dialog is shown when a user double clicks a server in the internet
// or favorites list. It shows a bit more information about a server and
// has a "Connect" button to connect to the server
//
//==============================================================================

#ifndef SERVERINFODIALOG_H
#define SERVERINFODIALOG_H

#include <QDialog>
#include "CServer.h"

namespace Ui
{
    class ServerInfo;
}

class ServerInfo : public QDialog
{
    Q_OBJECT

    Ui::ServerInfo *ui;
    // This CServer object holds all information about the server this dialog represents
    CServer m_Server;
    
    public:
    // The constructor and destructor
    ServerInfo(QWidget *parent, CServer server);
    ~ServerInfo();
    
    private slots:
    // Called when the "Connect" button is clicked
    void on_connectButton_clicked();
    // Called when the "Cancel" button is clicked
    void on_cancelButton_clicked();
};

#endif // SERVERINFODIALOG_H
